package com.pureut.scheduling.util;


import com.ibm.icu.text.SimpleDateFormat;

import java.text.ParseException;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
public class CeShiUtil {

    public static void main(String[] args) throws ParseException {
        Date date = new Date();
        SimpleDateFormat simp = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println(simp.format(date));
        long kl = date.getTime()+ 5 * 60 * 1000;

        String time = simp.format(new Date(kl));
        System.out.println(time);

    }
}